using SqlSugar;
using YL.Utils.Extensions;

namespace YL.Core.Entity
{
    [SugarTable("whr_content")]
    public class Whr_content
    {
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "title")]
        public string Title { get; set; }

        [SugarColumn(ColumnName = "image")]
        public string Image { get; set; }

        [SugarColumn(ColumnName = "content")]
        public string Content { get; set; }

        [SugarColumn(ColumnName = "type")]
        public byte? Type { get; set; }

        [SugarColumn(ColumnName = "category_id")]
        public int CategoryId { get; set; }

        [SugarColumn(ColumnName = "create_at")]
        public int CreateAt { get; set; } = DateTimeExt.GetUnixTimestamp();

        [SugarColumn(ColumnName = "update_at")]
        public int UpdateAt { get; set; }

        [SugarColumn(ColumnName = "url")]
        public string Url { get; set; }

        [SugarColumn(ColumnName = "list_order")]
        public int ListOrder { get; set; }

        [SugarColumn(ColumnName = "status")]
        public byte? Status { get; set; }
    }
}